/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hw1;

/**
 *
 * @author c0909h1194
 */
class Thread1 extends Thread
{
    @Override
    public void run(){
    int i,j = 0,k = 1;

     for(i=1;i<25;i++){
     i=j;
     j=k;
     k=i+j;
     System.out.println(i);
     }



    }
}
class Thread2 extends Thread{
    int i=0,j=0,k=1,c;
    @Override
    public void run()
    {
        for(i=0;i<30;i++)
        {
        i=j;
        j=k;
        k=i+j;
        c=k%2;
        if(c!=1){
            System.out.println(""+k+" la so chan");
        }else{
        System.out.println(""+k+" la so le");
        }


        }
        }
    }

public class hw1{
public static void main(String Args[])
    {
        Thread1 t1 = new Thread1();
        Thread2 t2 = new Thread2();
        t1.start();
        t2.start();


    }
}